<?php
header('Content-type: text/vnd.wap.wml');
$noteid		= $_REQUEST['noteid'];
?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Xóa ghi chú">
<p>
<?php
	if ($db = new SQLite3('webnote.db3')) 
	{
		$q = $db->query("DELETE FROM notes WHERE noteid=$noteid");
		if($q === false)
			echo("Couldn't insert into table: ".$db->lastErrorMsg());
		else
		{
			echo "Delete note $noteid successful\n";
		}
	}
	else
		echo("Couldn't open database!");
?>
<br/> <br/>
	&#169;2011 -  Vutrankien - vukien@hcm.fpt.vn<br/>  
</p>
</card>
</wml>